/*
 * @(#)SysStartListener.java May 15, 2007
 * 
 * Copyright 2007 by ChinanetCenter Corporation.
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ChinanetCenter Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with ChinanetCenter.
 * 
 */
package com.cnc.fd.schedule;

import java.util.Timer;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import com.cnc.bas.util.Log;
import com.cnc.bas.util.SpringBeanFactory;
import com.cnc.fd.service.FdDao;
 


/**
 * 
 * @author 阿闲
 * @date   May 15, 2007
 * @version 1.0
 */
public class SysStartListener implements ServletContextListener {

	protected  Log log = Log.getLogger(this.getClass());
	
 

	public void contextInitialized(ServletContextEvent arg0) {
		log.logInfo("清理run任务");		
		FdDao fdDao = (FdDao)SpringBeanFactory.getBean(FdDao.BEAN_ID);
		fdDao.clearRunTask();
	 
	}
	
	public void contextDestroyed(ServletContextEvent arg0) {		
		 
	 
	}

}


